import request from '@/config/axios'

/**
 * 用户 VO
 */
export interface UserVO {
  id: number
  username: string
  nickname: string
  deptId: number
  email: string
  mobile: string
  sex: number
  avatar: string
  loginIp: string
  loginDate: Date
  status: number
  createTime: Date
}

/**
 * 用户 API
 */
export const UserApi = {
  // 查询用户精简列表
  getSimpleUserList: async (): Promise<UserVO[]> => {
    return await request.get({ url: '/system/user/simple-list' })
  }
}
